package org.example.FactoryPattern;

/**
 * 具体产品类：豪华住宿（新增）
 */
public class DeluxeAccommodation extends Accommodation {
    public DeluxeAccommodation() {
        this.accommodationType = 2;
        this.price = 1000;
        this.roomDescription = "Deluxe room with ocean view and private pool";
    }

    @Override
    public void getAccommodationInformation() {
        System.out.println(
                "Deluxe Accommodation | Price: " + price +
                        " | Description: " + roomDescription
        );
    }

    @Override
    public void updateCleaningStatus(boolean newStatus) {
        this.cleaningStatus = newStatus ? "Clean (Premium)" : "Dirty (Requires Priority Cleaning)";
        System.out.println("Cleaning status updated to: " + cleaningStatus);
    }
}